<?php 
echo "<pre>";
$fh = fsockopen('192.168.4.179',80,$errno,$errstr,10);


//拼凑http协议的信息
$req = array(
	'GET /php25/http/5.html HTTP/1.1',
	'Host:localhost',
	'',
	''
);
//拆分数据
$req = implode("\n",$req);


//
fwrite($fh,$req);


while($row = fread($fh,30)){
	echo $row;
}


fclose($fh);